<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<BASE href="<?= HOME; ?>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
     <meta name="keywords" content="<?php if($data[keyword]=="") { echo KEYWORD;}else{echo $data[keyword];} ?>" />	
	<meta name="description" content="<?php if($data[mota]=="") { echo DES;}else{echo $data[mota];} ?>" /> 
	<title><?php if($data[title]=="") { echo HEAD;}else{echo $data[title];} ?></title>
    
	<link rel="icon"  type="image/png" href="/favicon.png" />
	<link href="<?= HOME ?>public/bootstrap/css/bootstrap.css" rel="stylesheet">
	<link href="<?= HOME ?>public/bootstrap/css/mystyle.css" rel="stylesheet">
	<link rel="stylesheet" href="<?= HOME ?>public/exts/css/style.css" type="text/css" />
		<?php
		if($_SESSION['mobile']!=0){
		echo '<link rel="stylesheet" href="public/exts/css/style_news_mobi.css" type="text/css" />';
		}else
		if($_SESSION['list_news_list'] == 1){
			echo '<link rel="stylesheet" href="public/exts/css/style_news_list.css" type="text/css" />';
		}else{
			echo '<link rel="stylesheet" href="public/exts/css/style_news_grid.css" type="text/css" />';
		}
	?>
	<link href="<?= HOME ?>public/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="<?= HOME ?>public/exts/css/select2.css" type="text/css" />
  
    <?php
	if($_SESSION['mobile']!=0){
	?>
    <link rel="stylesheet" href="<?= HOME ?>public/bootstrap/css/mobile.css" type="text/css" />
	<?php } ?>
	<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
	<link rel="stylesheet" href="<?= HOME ?>public/exts/js/jqueryupload/css/jquery.fileupload-ui.css">
	<!-- CSS adjustments for browsers with JavaScript disabled -->
	<noscript><link rel="stylesheet" href="<?= HOME ?>/public/exts/js/jqueryupload/css/jquery.fileupload-ui-noscript.css"></noscript>
	
	<script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/js/jquery-1.7.1.min.js"></script>
     <script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/masonry/mansonry.js"></script>
    <script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/masonry/jquery.infinitescroll.min.js"></script>
    <script type="text/javascript" language="javascript" src="<?= HOME ?>public/exts/masonry/imageloaded.js"></script>
     <script type="text/javascript">var baseUrl = '<?= HOME; ?>'</script>
   
     <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed&subset=vietnamese' rel='stylesheet' type='text/css'>
	
</head>
	
<body style="padding-top:70px">
	<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));
	</script>
	<div id="wrapAll">
	
			
			
				<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header ">
						<button type="button" class="navbar-toggle navbar-left" data-toggle="collapse" data-target=".navbar-ex1-collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="<?php echo HOME ?>">PUN.VN</a>
                        <?php
						if($_SESSION['mobile']!=0){
							if(isset($_GET['act']) && $_GET['act']=='view'){
								if($_GET['module']=='news'){
							 ?>
                     <div class="btn-group pull-left btn-group-sm" style='margin-top:8px' >
                        <a class="navbar-brand detail_controlNavItem btn btn-danger"  id="preNav" > <i class="icon-long-arrow-left icon-light"></i> <span style='color:#fff'>Trước</span></a>
                        <a class="navbar-brand detail_controlNavItem btn btn-danger"  id="nextNav"><span style='color:#fff'> Sau</span> <i class="icon-long-arrow-right icon-light"></i></a>
                       
                        </div> 
                         <a class="controlNavLoading" style="display: none; float: left; padding: 7px; margin-left: 5px;"><img style="padding-top: 6px;" width="20" src="public/images/loading.gif" alt="loading" /></a>
                        <?php
								}
							}
						 } ?>
					</div><!-- end .navbar-header -->
					
             
					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse navbar-ex1-collapse yamm">
                   
						<ul class="nav navbar-nav">
                        
                        
                          <li class="dropdown">
	        					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                 Danh Mục
                                 <b class="caret"></b></a>
        						<ul class="dropdown-menu">
         							<?php menu_render_category(); ?>
							      
							    
       							</ul>
	      					</li>
                        
							
                            <li><a href="<?php echo HOME."list/album" ?>"><i class="icon-folder-open"></i> Album</a></li>
                             <li><a href="<?php echo HOME."list/video" ?>"> <i class="icon-facetime-video"></i> Video</a></li>
                              <li><a href="<?php echo HOME."list/hinh-anh" ?>"><i class="icon-picture"> </i> Hình Ảnh</a></li>
                              <li><a href="<?php echo HOME."list/blog" ?>"><i class="icon-file-text"></i> Bài Viết</a></li>
                                <li><a href="<?php echo HOME."index.php?module=news&act=type&type=text" ?>"><i class="icon-smile"></i> HÀI VL</a></li>
                              
						</ul>
	    
						

	    
						
						 <?php
						if($_SESSION['mobile']==0){ ?>
						
	    				<ul class="nav navbar-nav navbar-right">
                       <li class="upload_mn"><a href="<?PHP echo  UPLOAD ?>" ><i  class="icon-cloud-upload"></i> UPLOAD</a></li>
                        
                    
	      				<?php if(!isset($_SESSION['user'])){ ?>
	      					<li class="dropdown">
	        					<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> User
                                 <b class="caret"></b></a>
        						<ul class="dropdown-menu">
         							<li></li>
							        <li><a href="<?php echo LOGIN ?>">Đăng Nhập</a></li>
							        <li><a href="<?php echo REGISTER ?>">Đăng Ký</a></li>
							    
       							</ul>
	      					</li>
                            <?php }else{ // ISSET SESSION USER ---
							?>
                            <li class="dropdown">
	        					<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>
                                 <?php echo show_username($_SESSION['user']['username'],$_SESSION['user']['name']);?>
                                 <b class="caret"></b></a>
        						<ul class="dropdown-menu">
         							<li></li>
							        <li><a href="<?php echo USER_INFO;?>">Thông Tin</a></li>
                                    <li><a href="<?php echo USER_UPDATE_INFO;?>">Cập Nhật Thông Tin</a></li>
                                      <li><a href="<?php echo HOME.'user/'.$_SESSION['user']['username'] . '/wall'; ?>">Tường Của Tôi</a></li>
                                  
                     				<li><a href="<?php echo USER_UPDATE_INFO;?>">Cập Nhật Thông Tin</a></li>
                    				  <li><a href="<?php echo USER_CHANGEPASSWORD; ?>">Thay đổi mật khẩu</a></li>
							        <li><a href="<?php echo LOGOUT ?>">Thoát</a></li>
							    
       							</ul>
	      					</li>
                            <?php } ?>
	    				</ul>
                        <?php }//SESSION MOBILE ?>
                        
                        <?PHP /*
                        	<div class="col-sm-3 col-md-3 pull-right">
         <form class="navbar-form" role="search">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
            <div class="input-group-btn">
                <button class="btn btn-danger" type="submit"><i class="glyphicon glyphicon-search"></i></button>

            </div>
        </div>
        </form> 
     
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
            <div class="input-group-btn">
                <button class="btn btn-danger" type="submit"><i class="glyphicon glyphicon-search"></i></button>
            </div>
        </div>
       
        
        </div>
		<?PHP */ ?>
                        
	  				</div><!-- /.navbar-collapse -->
				</nav>




<!-- End header -->		